package com.leather.quan.vo;

import com.leather.common.entity.Quan;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class QuanVo implements Serializable {

    private Integer id;

    private Integer userId;

    private String quanDesc;

    private String imgUrl;


    public Quan transfer(){
        Quan quan = new Quan();
        quan.setId(0);
        quan.setUserId(userId);
        quan.setQuanDesc(quanDesc);
        quan.setQuanImgUrl(imgUrl);
        quan.setCreateTime(new Date());
        quan.setUpdateTime(new Date());
        quan.setStars(0);
        quan.setComments(0);
        quan.setFlag(0);
        return quan;
    }
}
